/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 消费者用户表
 *
 * @author proj code generator
 * @date 2020-11-16 17:00:21
 */
@Data
@TableName("cn_person")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "消费者用户表")
public class CnPerson extends Model<CnPerson> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 头像
     */
    @ApiModelProperty(value="头像")
	@NotBlank(message = "头像不能为空")
    private String headPortrait;
    /**
     * 手机号
     */
    @ApiModelProperty(value="手机号")
    private String phone;
    /**
     * 昵称
     */
	@NotBlank(message = "昵称不能为空")
    @ApiModelProperty(value="昵称")
    private String nickName;
    /**
     * 姓名
     */
    @ApiModelProperty(value="姓名")
    private String name;

    @ApiModelProperty(value="性别 ：1男  2女")
    private Integer sex;

    @ApiModelProperty(value="地区")
    private String region;
    @ApiModelProperty(value="微信头像等基本信息0已授权1未授权")
    private Integer authBaseStatus;

    @ApiModelProperty(value="状态")
    private Integer status;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String openId;

	@ApiModelProperty(value="登录时间")
	private LocalDateTime loginTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
	@TableLogic
    @ApiModelProperty(value="0可用1删除")
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
	/**
	 * 登录类型0微信小程序1百度
	 */
	@ApiModelProperty(value="登录类型")
	private Integer loginType;
}
